package pattern9;

/**
 * 具体的构建者1
 * @author wdl
 */
public class ConcreteBuilder2 extends Builder{
    private Product product=new Product();

    /**
     * 构建具体的两个部件
     */
    @Override
    public void buildPartA() {
        product.add("部件A");
    }

    @Override
    public void buildPartB() {
        product.add("部件B");
    }

    @Override
    public Product getResult() {
        return product;
    }
}
